#ifndef __ADMIN_H__
#define __ADMIN_H__

#include <stdio.h>
#include <string.h>
#include <sqlite3.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <time.h>
#define N 1024
char buf[N];
int ret;
int admin(int fd);
int option_choose();
int admin_login();
int  employ_login();
int admin_opt1(int opt_num);
int admin_opt2(int opt_num);
int employee_opt();
sqlite3 *db;
char *errmsg;
typedef struct emp
{
    char name[32];
    char age[8];
    char tel[32];
    char addr[32];
    char job[16];
    char date[12];
    char salary[12];
    char grade[12];
    char account[32];
    char pass[32];
}emp_inf;

#endif
